/*
 * Config.cpp
 *
 * Created: 11/16/2013 12:21:05 PM
 *  Author: brodzki
 */ 

#ifndef CONFIG_H_
#define CONFIG_H_

#include "DisplayHandler.h"

class Config
{
public:
	static DisplayConfig get_display_config()
	{
		DisplayConfig config;
				
		config.rs_bit   = PC0;
		config.e_bit    = PC1;
		config.db4_bit  = PC2;
		config.db5_bit  = PC3;
		config.db6_bit  = PC4;
		config.db7_bit  = PC5;
			
		config.rs_ddr   = &DDRC;
		config.e_ddr    = &DDRC;
		config.db4_ddr  = &DDRC;
		config.db5_ddr  = &DDRC;
		config.db6_ddr  = &DDRC;
		config.db7_ddr  = &DDRC;
				
		config.rs_port  = &PORTC;
		config.e_port   = &PORTC;
		config.db4_port = &PORTC;
		config.db5_port = &PORTC;
		config.db6_port = &PORTC;
		config.db7_port = &PORTC;
		
		return config;
	}
};

#endif // CONFIG_H_